import request from '@/utils/request'

// 查询帮扶评价列表
export function listValuation(query) {
  return request({
    url: '/obtain/valuation/list',
    method: 'get',
    params: query
  })
}

// 查询帮扶评价详细
export function getValuation(id) {
  return request({
    url: '/obtain/valuation/' + id,
    method: 'get'
  })
}

// 新增帮扶评价
export function addValuation(data) {
  return request({
    url: '/obtain/valuation',
    method: 'post',
    data: data
  })
}

// 修改帮扶评价
export function updateValuation(data) {
  return request({
    url: '/obtain/valuation',
    method: 'put',
    data: data
  })
}

// 删除帮扶评价
export function delValuation(id) {
  return request({
    url: '/obtain/valuation/' + id,
    method: 'delete'
  })
}
